
package com.dgz.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandAddNewParam implements Serializable {

    @NotNull(message = "新增品牌失败，必须提交品牌名称！")
    @ApiModelProperty(value = "品牌名称", required = true, example = "三星")
    private String name;

    @NotNull(message = "新增品牌失败，必须提交品牌名称拼音！")
    @ApiModelProperty(value = "品牌名称拼音", required = true, example = "sanxing")
    private String pinyin;
    private String logo;
    private String description;
    private String keywords;

    @NotNull(message = "新增品牌失败，必须提交品牌排序序号！")
    @Range(max = 99, message = "添加相册失败，排序序号必须在0~99之间")
    @ApiModelProperty(value = "品牌排序序号", required = true, example = "98")
    private Integer sort;

    @Range(max = 1, message = "添加相册失败，排序序号必须在0~1之间")
    private Integer enable;

}
